package com.aurora.blog.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.aurora.blog.mapper.BlogSharesMapper;
import com.aurora.blog.domain.BlogShares;
import com.aurora.blog.service.IBlogSharesService;

/**
 * 分享Service业务层处理
 * 
 * @author aurora
 * @date 2024-06-04
 */
@Service
public class BlogSharesServiceImpl implements IBlogSharesService 
{
    @Autowired
    private BlogSharesMapper blogSharesMapper;

    /**
     * 查询分享
     * 
     * @param shareId 分享主键
     * @return 分享
     */
    @Override
    public BlogShares selectBlogSharesByShareId(Long shareId)
    {
        return blogSharesMapper.selectBlogSharesByShareId(shareId);
    }

    /**
     * 查询分享列表
     * 
     * @param blogShares 分享
     * @return 分享
     */
    @Override
    public List<BlogShares> selectBlogSharesList(BlogShares blogShares)
    {
        return blogSharesMapper.selectBlogSharesList(blogShares);
    }

    /**
     * 新增分享
     * 
     * @param blogShares 分享
     * @return 结果
     */
    @Override
    public int insertBlogShares(BlogShares blogShares)
    {
        return blogSharesMapper.insertBlogShares(blogShares);
    }

    /**
     * 修改分享
     * 
     * @param blogShares 分享
     * @return 结果
     */
    @Override
    public int updateBlogShares(BlogShares blogShares)
    {
        return blogSharesMapper.updateBlogShares(blogShares);
    }

    /**
     * 批量删除分享
     * 
     * @param shareIds 需要删除的分享主键
     * @return 结果
     */
    @Override
    public int deleteBlogSharesByShareIds(Long[] shareIds)
    {
        return blogSharesMapper.deleteBlogSharesByShareIds(shareIds);
    }

    /**
     * 删除分享信息
     * 
     * @param shareId 分享主键
     * @return 结果
     */
    @Override
    public int deleteBlogSharesByShareId(Long shareId)
    {
        return blogSharesMapper.deleteBlogSharesByShareId(shareId);
    }
}
